package com.coolingme.simple;

/**
 * 课程建造者，将复杂的构造过程封装起来
 *
 * @author wangyue
 * @date 2020/9/30 10:51
 */
public class CourseBuilder {

    private Course course = new Course();

    public void addName(String name) {
        this.course.setName(name);
    }

    public void addVideo(String video) {
        this.course.setVideo(video);
    }

    public void addNote(String note) {
        this.course.setNote(note);
    }

    public Course build() {
        return this.course;
    }


}
